﻿using MiniErp.Entity.DataStreams.DOs;
using MiniErp.Entity.DataStreams.DTOs;
using MiniErp.Entity.DataStreams.DTOs.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Service.JWTService.IService
{
    /// <summary>
    /// token 服务层
    /// </summary>
    public interface ITokenService
    {
        /// <summary>
        /// 新增token
        /// </summary>
        /// <param name="users">用户信息数据传输对象</param>
        /// <returns></returns>
         string GetToken(UserDTO users);
        /// <summary>
        /// 获取当前访问的用户工号
        /// </summary>
         int GetUId();
        /// <summary>
        /// 获取当前访问的用户名
        /// </summary>
        string GetUserName();
        /// <summary>
        /// 获取权限名
        /// </summary>
        /// <returns></returns>
        string GetRightName();

    }
}
